const noRepeat = (list) => {
  return list.reduce((arr, item) => {
    arr.indexOf(item) === -1 && arr.push(item)
    return arr
  }, [])
}

export { noRepeat }

// 几种方式抛出 (整体和单个)
export default noRepeat
